package cn.kgc.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: mosin
 * @version: v1.0  2022/10/17
 * /user/delete  删除
 * /user/add    添加
 */
@Controller
@RequestMapping("user")
public class UserController {

    // 删除操作
    @RequestMapping("delete")
    public String delete(){ // 返回的String 表示视图名
        System.out.println("用户信息被删除");
        return "hello";
    }

    @RequestMapping("add")
    public String add(){
        System.out.println("用户信息被添加");
        return "hello";
    }

}
